#include<stdio.h>
#include<unistd.h>
#include<pthread.h>
void* routine (void* arg)
{
	pthread_detach(pthread_self());
	printf("%s\n",(char*)arg);
	return NULL;
}
int main()
{
	pthread_t pid;
	if(pthread_create(&pid,NULL,routine,"Thread_1 Run...") != 0)
	{
		printf("pthread_create error!\n");
		return 1;
	}
	//sleep(1);
	usleep(1000);
	if(pthread_join(pid,NULL) == 0)
		printf("wait success!\n");
	else
		printf("wait failed!\n");
	return 0;
}


